#include "servo.h"

void Servo_Init(void)
{
	MX_TIM4_Init();
	
}

void servoSetAngle(float Angle)
{
	__HAL_TIM_SET_COMPARE(&htim4,TIM_CHANNEL_1,(uint16_t)(Angle/180.0*2000 + 500));
	//HAL_TIM_OC_Start(&htim3,TIM_CHANNEL_2);
}
